var express = require('express');
var router = express.Router();


router.get('/', (req, res, next) => {
  res.render('index', { list: [{id:1,name:'zs',gender:'男',age:18}] });
});

router.get('/add',(req,res) => {
    res.render('addPage')
});

router.post('/add',(req,res) => {

});

router.get('/delete/:id',(req,res) => {

});

router.get('/edit/:id',(req,res) => {
    res.render('addPage')
})

router.post('/edit/:id',(req,res) => {
    
})

module.exports = router;